# coding:utf-8
from django.db import models


class Person(models.Model):
    title = models.CharField(max_length=30)
    jieshao = models.CharField(max_length=100)
    img= models.CharField(max_length=30)
    jiage= models.IntegerField()
    zhuangtai= models.IntegerField()
    riqi=models.DateTimeField('最后修改日期', auto_now = True)

    def getitem(self,id):
        p=self.objects.get(id=id)
        return p